package com.example.rabbitmq.rabbit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/19 21:57
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue helloQueue() {
        return new Queue("hello");
    }
    @Bean
    public Queue neoQueue() {
        return new Queue("lyh");
    }

    @Bean
    public Queue objectQueue() {
        return new Queue("object");
    }


}
